package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    Set<Permission> findByRoleid(int id);

    List<Permission> findAll();

    Page<Permission> findByQueryString(String queryString);

    void add(Permission permission);

    void addroleids(@Param("permissionId") Integer id, @Param("roleids") Integer[] roleids);
}
